<div id="mail-mailDetail" data-view="mail/mailDetail">
<style type="text/css">
.content{
  background-color: #FFFFFF !important;
}
.title{
  width: 60%;
  left: 21%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  height: 100%;
}
.flex1{
line-height: 44px;
}
.flex1 span{
color: #747B87;
font-weight: 700;
}
.hbox{
/*background-color: #EEEEEF !important;*/
-webkit-box-shadow: 0 0 1px #D5D5D5;
}
.detailInfo{
padding: 17px 11px 15px 13px;
border-bottom: 1px #D1D1D1 solid;
color: #b5bece;
}
/* .detailInfo>div{
  line-height: 25px;
} */
.infoBase{
  height: 25px;
}
.infoBase>span:nth-child(2){
  text-align: right;
  position: absolute;
  right: 60px;
}
.baseName{
font-size: 18px;
width: 125px;
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #2f2f2f;
}
.baseDate{
/*color: #D6DBE4;*/
text-align: right;
}
.baseExtend{
/*color: #D6DBE4;*/
float: right;
}
.addressee,.sender,.baseExtend,.baseDate{
font-size: 14px;
}
.sender{
  margin-top: 5px;
}
.addressee,.sender{
  height: 100%;
}

.allExtend{
  height: 16px;
width: 80%;
display: inline-block;
overflow: hidden;
 white-space: nowrap;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
vertical-align: top; 

}
.addAttr{
width: 50px;
display: inline-block;
}
.mailContent{
  display: inline-block;
  height: auto;
padding: 15px;
word-wrap: break-word;
}
.title-text{
width: 100%;
padding: 5px 10px;
background-color: #EEEEEF;
color: #5A6170;
display: inline-block;
font-size: 13px;
margin-top: 5px;
margin-left: 4px;
 overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.downNav{
font-size: 13px;
/*color: #D6DBE4;*/
padding-top: 3px;
padding-right: 5px;
}
.flex1 span{
  font-weight: inherit;
}

#wrapper {
  position: absolute;
  top: 48px;
  bottom: 44px;
  width: 100%;
  overflow: hidden;

  /* Prevent native touch events on Windows */
  -ms-touch-action: none;

  /* Prevent the callout on tap-hold and text selection */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  /* Prevent text resize on orientation change, useful for web-apps */
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
  -o-text-size-adjust: none;
  text-size-adjust: none;
}

#scroller {
  position: absolute;
  width: 100%;
  /* Prevent elements to be highlighted on tap */
  -webkit-tap-highlight-color: rgba(0,0,0,0);

  /* Put the scroller into the HW Compositing layer right from the start */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
}
#textWrapper {
  z-index: 1;
  width: 100%;
  overflow: hidden;
}
#textScroller {
  z-index: 1;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
  -o-text-size-adjust: none;
  text-size-adjust: none;
}
.download-area{
  line-height: inherit;
  position: relative;
}
.download-progress{
  background-color: #eeeeef;
  display: none;
  z-index: 99;
  position: absolute;
   top: 0px; 
  width: 100%;
  margin: 10px 0px 0px 4px;
  padding: 5px 20px 5px 10px;
  left: 0px;
}
.progressBar{
  margin: 0 auto;
  width: 100%;
  position: relative;
  height: 13px;
  border: 1px #8997B1 solid;
  border-radius: 2px;
  box-shadow: inset 0px 1px 1px 0px rgba(0, 0, 0, 0.2);
  float:left;
}
.progressBarRate{
  width: 0%;
  height: 100%;
  background-color: green;
  transition:width 0.1s;
-moz-transition:width 0.1s; /* Firefox 4 */
-webkit-transition:width 0.1s; /* Safari and Chrome */
-o-transition:width 0.1s; /* Opera */
}
.precent{
  position: absolute;
  top: 0px;
  font-size: 13px;
  line-height: 13px;
  width: 100%;
  text-align: center;
}
.close{
  position: absolute;
  z-index: 999;
  font-size: 13px;
}
.complete{
  display: none;
  margin-top: 9px;
  width: 13px;
  right: 0px;
  line-height: 13px;
  color: green;
  top: 0px;
  position: absolute;
  font-size: 13px;
}

/*progress 样式*/
.meter {
  display: none; 
  height: 15px;
  width: 100%;
  top: 10px;
  padding-left: 8px;
  position: absolute; 
}
.meter > span {
  display: block;
  height: 100%;
     -webkit-border-top-right-radius: 8px;
  -webkit-border-bottom-right-radius: 8px;
          border-bottom-right-radius: 8px;
      -webkit-border-top-left-radius: 8px;
   -webkit-border-bottom-left-radius: 8px;
              border-top-left-radius: 8px;
           border-bottom-left-radius: 8px;
  background-color: rgb(43,194,83);
  background-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    color-stop(0, rgb(43,194,83)),
    color-stop(1, rgb(84,240,84))
   );
  -webkit-box-shadow: 
    inset 0 2px 9px  rgba(255,255,255,0.3),
    inset 0 -2px 6px rgba(0,0,0,0.4);
  box-shadow: 
    inset 0 2px 9px  rgba(255,255,255,0.3),
    inset 0 -2px 6px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.meter > span:after, .animate > span > span {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background-image: 
     -webkit-gradient(linear, 0 0, 100% 100%, 
        color-stop(.25, rgba(255, 255, 255, .2)), 
        color-stop(.25, transparent), color-stop(.5, transparent), 
        color-stop(.5, rgba(255, 255, 255, .2)), 
        color-stop(.75, rgba(255, 255, 255, .2)), 
        color-stop(.75, transparent), to(transparent)
     );
  z-index: 1;
  -webkit-background-size: 50px 50px;
  -webkit-animation: move 2s linear infinite;
     -webkit-border-top-right-radius: 8px;
  -webkit-border-bottom-right-radius: 8px;
             border-top-right-radius: 8px;
          border-bottom-right-radius: 8px;
      -webkit-border-top-left-radius: 8px;
   -webkit-border-bottom-left-radius: 8px;
              border-top-left-radius: 8px;
           border-bottom-left-radius: 8px;
  overflow: hidden;
}

.animate > span:after {
  display: none;
}

@-webkit-keyframes move {
    0% {
       background-position: 0 0;
    }
    100% {
       background-position: 50px 50px;
    }
}
</style>
<script id="attachement-template" type="text/x-underscore-template">
  
  <div class="download-area">
    <div class="title-text" data-href="<%=link%>">
      <span class="attach-size">
        <%var attachSize = null;
        if(size>1048576){
          attachSize = (size/1024/1024).toFixed(1) + "M";
        } else if(1024 < size && size < 1048576){
          attachSize = (size / 1024).toFixed(1) + "KB"
        } else{
          attachSize = size + "b";
        }%>
        <%="("+attachSize+")"%>
      </span>
      <span class="subject"><%=name%></span>
    </div>
    <div class="meter" id='progress<%=link.split("=")[1]%>'>
      <span style="width: 100%" class="meter-progress"></span>
    </div>
    <div id ='download<%=link.split("=")[1]%>' class="download-progress">
      <div class="progressBar">
        <div class="progressBarRate"></div>
        <div class="precent">
          <span>正在下载： </span>
          <span class="result">0%</span>
        </div>
      </div>
      <span class="close icon icon-close"></span>
    </div>
    <span class="icon icon-check complete"></span>  
  </div>

</script>

<header class="bar bar-nav mail">
  <a class="icon icon-left-nav pull-left" data-action="back"></a>
  <h1 class="title">标题</h1>
  
</header>
<!-- content -->
<div class="content">
  <div id="wrapper">
    <div id="scroller">
      <div class="detailInfo">
        <div class="infoBase">
          <span class="baseName"></span>
          <span class="baseDate"></span>
          
          <span class="baseExtend"><span class="icon icon-down-nav downNav"></span>详细</span>
        </div>
        <div class="addressee">
          <div class="addAttr">收件人:</div>  <div class="allExtend addressInfo"></div>
        </div>
        <div class="sender">
          <div class="addAttr">抄送人:</div>  <div class="allExtend makeCopyInfo"></div>
        </div>
        <div class="attche-download">
        </div>
      </div>

    <div id="textWrapper">
      
      <div class="mailContent" id="textScroller">

      </div>
    </div>
    </div>
  </div>
  </div>
  
  <div class="bar bar-standard bar-footer hbox" style="text-align:center">
    <p class="flex1 reply"><span>回复</span></p>
    <p class="flex1 replyAll"><span>回复全部</span></p>
    <p class="flex1 forwarding"><span>转发</span></p>
    <p class="flex1 move"><span>移至回收站</span></p>
    <p class="flex1 deleteMail"><span>删除</span></p>
  </div>
</div>